package store.lunangangster.engine.impl.entity.mgr;

import java.util.List;
import store.lunangangster.engine.ProcessEngineConfiguration;
import store.lunangangster.engine.impl.entity.VariableEntity;
import store.lunangangster.engine.impl.entity.VariableEntityImpl;

public class VariableEntityManagerImpl extends AbstractEntityManagerImpl<VariableEntity> implements VariableEntityManager {

  public VariableEntityManagerImpl(
      ProcessEngineConfiguration processEngineConfiguration) {
    super(processEngineConfiguration);
  }

  @Override
  public Class<? extends VariableEntity> getManagedEntityClass() {
    return VariableEntityImpl.class;
  }

  @Override
  public VariableEntity create() {
    return new VariableEntityImpl();
  }

  @Override
  public List<VariableEntity> selectVariableByExecutionId(String executionId) {
    return selectList("selectVariableByExecutionId", executionId, null);
  }
}
